<%--
  Created by IntelliJ IDEA.
  User: YHY
  Date: 2024/6/19
  Time: 15:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<body>
    <div class="lefter">
    <div class="box">
        <h2>商品分类</h2>
        <dl>
            <dt>图书音像</dt>
                <dd><a href="productSelectByPage?pageIndex=${pageIndex}&classId=16">图书</a></dd>
            <dd><a href="productSelectByPage?pageIndex=${pageIndex}&classId=17">音乐</a></dd>
            <dt>百货</dt>
            <c:forEach var="classItem" items="${classList}" >
                <c:if test="${classItem.epc_id != 16 && classItem.epc_id != 17}">
                    <dd><a href="productSelectByPage?pageIndex=${pageIndex}&classId=${classItem.epc_id}">
                            ${classItem.epc_name}</a></dd>
                </c:if>
            </c:forEach>
        </dl>
    </div>
    <div class="spacer"></div>
    <div class="last-view">
        <h2>最近浏览</h2>
        <c:forEach var="item" items="${history_list}" varStatus="status">
            <dl class="clearfix">
                <dt><img src="data:image/jpeg;base64,${history_images[status.index]}" /></dt>
                <dd><a href="productSelectById?id=${item.ep_id}">${item.ep_name}</a></dd>
            </dl>
        </c:forEach>
    </div>
</div>
</body>
</html>
